#ifndef MMD_H
#define MMD_H
class mmD{

public:

	mmD();
   ~mmD();

    HWND hwndMiniMap;
	HWND hwndMiniTileset;
	sCombo  MFMap;
	int Create();//Sets colors and arrays up
    int Clear();//Clears palette and graphics
	sCombo  cboPalette;
	sCombo  cboMArea;
	Image   Tileset;
	Image   Map;
	long   MapList[0xB];
	u8     MZMTilesetGraphics[0x3000];
	u8    MFTilesetGraphics[0x4000];
	long    MFPalette[0x400];
    long    MZMPalette[0x400];
	std::vector<u16>    RawMap;
	TileBuffer ts;
	int DecompressMap();
	int Destroy();
    int CreateMiniMapImage(int Width,int Height);
	int CreateMiniMapTileImage(int Width,int Height);
    int DrawTileset();
	int DrawMap();
	int SaveMap();
	u32 DSize;
	u16 curtile;
	sChecks Vert;
	sChecks Horz;
	
private:
    int Zero();//Will 0 out every erray and return the average to make sure it's all 0
    
};
#endif